<template>
  <div>
    <h1 v-if="error.statusCode === 404">页面未找到</h1>
    <h1 v-else>发生错误</h1>
    <nuxt-link to="/">返回首页</nuxt-link>
  </div>
</template>
<script>
export default {
  layout: 'error-layout',
  props: {
    error: {
      type: Object,
      default: () => ({}),
    },
  },
}
</script>
